1 //------------------------------------------------------------------------
3 // Copyright (c) Microsoft Corporation. All rights reserved.
6 // Defines the connection to PresentationHostDLL.dll
12 // Ported Windows->DevDiv. See SourcesHistory.txt.
14 //------------------------------------------------------------------------
21 CVersion(__in_ecount(1) LPCWSTR pswzVersion
);
25 BOOL
IsValid() { return m_bIsValid
; }
26 BOOL
IsAttached() { return m_bIsAttached
; }
30 DWORD
Major() const { return m_dwMajor
; }
31 DWORD
Minor() const { return m_dwMinor
; }
32 STRING_PROP(LibraryPath
);
34 int CompareTo(__in_ecount(1) CVersion
* pOther
);
36 // Invokes Watson and terminates on failure
37 void Activate(__in_ecount(1) const struct ActivateParameters
* pParameters
, __deref_out_ecount(1) LPUNKNOWN
* ppInner
);
39 HRESULT
ForwardTranslateAccelerator(__in_ecount(1) MSG
* pMsg
);
40 HRESULT
SaveToHistory(__in_ecount(1) IStream
* pHistoryStream
);
41 HRESULT
LoadFromHistory(__in_ecount(1) IStream
* pHistoryStream
, __in_ecount(1) IBindCtx
* pBindCtx
);
44 void ParseVersion(__in_ecount(1) LPCWSTR pswzVersion
);
47 typedef void (*ActivatePfn
)(__in_ecount(1) const ActivateParameters
* pParameters
, __deref_out_ecount(1) LPUNKNOWN
* ppInner
);
48 typedef void (*DeactivatePfn
)();
49 typedef HRESULT (*ForwardTranslateAcceleratorPfn
)(__in_ecount(1) MSG
* pMsg
, VARIANT_BOOL appUnhandled
);
50 typedef HRESULT (*SaveToHistoryPfn
)(__in_ecount(1) IStream
* pHistoryStream
);
51 typedef HRESULT (*LoadFromHistoryPfn
)(__in_ecount(1) IStream
* pHistoryStream
, __in_ecount(1) IBindCtx
* pBindCtx
);
57 HINSTANCE m_hInstance
;
59 CString m_strLibraryPath
;
63 ActivatePfn m_pfnActivate
;
64 DeactivatePfn m_pfnDeactivate
;
65 ForwardTranslateAcceleratorPfn m_pfnForwardTranslateAccelerator
;
66 SaveToHistoryPfn m_pfnSaveToHistory
;
67 LoadFromHistoryPfn m_pfnLoadFromHistory
;